package com.endpoint.home.feign;

import com.endpoint.common.utils.ResultBean;
import com.endpoint.home.to.BookTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.awt.print.Book;
import java.util.List;

/**
 * @Project: endpoint
 * @Name: BookFeignService
 * @Author: Jack_Li
 * @Date: 2024/7/4 8:18
 */
@FeignClient(value = "endpoint-book")
public interface BookFeignService {

    @PostMapping("/book/listByIds")
    public ResultBean<List<BookTo>> listByIds(@RequestBody List<Long> ids);

    @GetMapping("/book/updateRankList")
    public ResultBean<List<BookTo>> updateRankList();

}
